home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 9
/
The PC-SIG Library on CD ROM - Ninth Edition.iso
/
001_100
/
DISK0082
/
DISK0082.ZIP
/
RUNME.BAT
< prev
next >
Wrap
DOS Batch File
|
1983-08-29
|
2KB
|
58 lines
echo off
. runme.bat revised 14-aug-83 16:47
slash/ldl/ RUNME.BAT
slash/ldll/
echo Welcome to a "hands-on" demonstration of the Batch File utilities
echo contained on this diskette. Before we proceed with the utilities,
echo let's discuss Batch Files in general.
slash/ll
echo I would like to use a DOS utility MORE in this presentation, so
echo would you please place a DOS 2.0 disk with the MORE.COM file in any
echo other drive ...
echo ( or, have MORE.COM on the same disk and directory as these files ).
slash/ll
:lookmore
pause
slash/l
echo XT users with one physical floppy: Just tap a key if you get the
echo "insert diskette for drive A:" or "...B:" messages.
slash/ll
echo I'm going to see if I can find MORE.COM . It will just take a
echo second or two ...
if exist more.com goto same_dir
findfile more.com
if errorlevel 255 goto cantfind
if not errorlevel 4 path = d:\
if not errorlevel 3 path = c:\
if not errorlevel 2 path = b:\
if not errorlevel 1 path = a:\
:same_dir
slash/ll
echo Got it! Thanks.
slash/ll
echo Whenever you see -- More -- displayed, strike any key to continue.
slash/ll
echo We're assuming that you know what the general concept of
echo a Batch File is. Hopefully you have written a few, at least.
echo If you don't know a Batch File from a Nail File and would like a
echo short list of journal articles for reference, and a short
echo "micro-tutorial" on the basics, then type "y" or "Y" .
slash/l/
echo If, however, you understand the general idea and would like to
echo politely skip the elementary stuff, then type "n" or "N" . . .
query/l/ So, elementary references (y/n) ?
if not errorlevel 1 _runme3
if not errorlevel 2 _runme2
goto exit
:cantfind
echo ---
echo Sorry, I can't find MORE.COM . Would you check again that it is in
echo one of the drives (and, it's in the current directory). If you need
echo to exit, type CTRL-BREAK, else type any key when ready and I'll look
echo again.
echo ---
goto lookmore
:exit
slash/11/ Bye bye